QuickTime 4 API Documentation

3D Graphics Programming with QuickDraw 3D 1.5.4

Previous | QD3D Book | Overview | Chapter Contents | Next |

Shader Data Objects

Labels

ASCII
Shader
Binary
shdr ( = 0x73686472 )

Shader UV Boundary TYPES

Wrap
0x00000000
Clamp
0x00000001

Constant descriptions

Wrap
Values outside the valid range of uv values are to be wrapped. To wrap a shader effect is to replicate the entire effect across the mapped area.
Clamp
Values outside the valid range of uv values are to be clamped. To clamp a shader effect is to replicate the boundaries of the effect across the portion of the mapped area that lies outside the valid range.

Data Format

ShaderUVBoundaryEnum                uBounds
ShaderUVBoundaryEnum                vBounds
uBounds
The value in this field determines whether values in the u parametric direction that lie outside the valid range are wrapped or clamped by the parent shader.
vBounds
The value in this field determines whether values in the v parametric direction that lie outside the valid range are wrapped or clamped by the parent shader.

Data Size

8

Description

A shader data object is a boundary-handling method specifier that determines how a parent shader handles parametric uv values that are outside the valid range (namely, 0 to 1).

Parent Hierarchy

Data.

Parent Objects

Any shader. A shader data object always has a parent object.

Child Objects

None.

Example

Container (
    CustomShader ( ... )
    ShaderData ( Wrap Clamp )
)

Default Values

Wrap Wrap

© 1997 Apple Computer, Inc.

Previous | QD3D Book | Overview | Chapter Contents | Next |